package cn.fzkj.springcloud.config;

import cn.fzkj.springcloud.service.HystrixService;
import org.springframework.stereotype.Component;

/**
 * 统一 HystrixService 异常处理
 * 第二种方式
 */
@Component
public class HystrixFallbackService implements HystrixService {
    @Override
    public String get(Long id) {
        return "HystrixFallbackService --- 异常处理";
    }
}
